package com.dnjn.happiness.emo.controller;

import com.dnjn.happiness.emo.assist.FerScheduleJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/open/fer")
public class OpenFerController {

    @Autowired
    FerScheduleJob ferScheduleJob;

    @GetMapping("once")
    public void handleRecordFer(@RequestParam(required = false, defaultValue = "3") Integer count, @RequestParam(required = false, defaultValue = "16") Integer batchSize) {

        ferScheduleJob.handleRecordFer(count, batchSize);
    }
}
